﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using System.Data;
using HotelG11.Models;

namespace HotelG11.Controllers
{
    public class HomeController : Controller
    {
        public ActionResult Index()
        {
            ViewBag.Message = "Modify this template to jump-start your ASP.NET MVC application.";
            G11KhachSanEntities G11 = new G11KhachSanEntities();
            List<HangPhong> HP = new List<HangPhong>();
            var res = G11.sp_LayDSHangPhong();
            HP = res.ToList<HangPhong>();

            return View(HP);
        }

        public ActionResult About()
        {
            return View();
        }

        public ActionResult Contact()
        {
            ViewBag.Message = "Your contact page.";
            return View();
        }
    }
}
